<?php

class Users_Model_Access_Role extends Workset_Model_Object_Abstract {

    protected $_hasRelations = true;

    function addRule(Users_Model_Access_Resource $resource, Users_Model_Access_Privilege $privilege) {
		$storage = $this->getStorage();
		return $storage->addRule($this, $resource, $privilege);
	}

	function deleteRule(Users_Model_Access_Resource $resource, Users_Model_Access_Privilege $privilege) {
		$storage = $this->getStorage();
		return $storage->deleteRule($this, $resource, $privilege);
	}

	function getRules() {
		$storage = $this->getStorage();
		return $storage->getRules($this);
	}

    function getGroups() {
        $storage = $this->getStorage();
		return $storage->getGroups($this);
    }

}

?>